import axios from 'axios'

import qs from 'qs'

const instdance = axios.create({
    timeout:'5000'

})
instdance.interceptors.request.use(config =>{
    if(config.method == 'post'){
        config.data = qs.stringify(config.data)
    }
    return config
},err =>{
   return Promise.reject(err)
}
)

export default instdance;